import request from '@/utils/request'
export default class index {
    static getNumbers(query:any = {}) {
        return request({
            url: 'api/numbers',
            method: 'get',
            params: query
        })
    }

    static getFinance(id:number | string = 0) {
        return request({
            url: `api/numbers/finances/${id}`,
            method: 'get'
        })
    }

    static getChatLog(query:any = {}) {
        return request({
            url: `api/numbers/chatlog`,
            method: 'get',
            params: query
        })
    }

    static getNewChatLog(query:any = {}) {
        return request({
            url: `api/numbers/newchatlog`,
            method: 'get',
            params: query
        })
    }

    static getCharms(query:any = {}) {
        return request({
            url: `api/numbers/charms`,
            method: 'get',
            params: query
        })
    }

    static forbid(number_id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/forbid/${number_id}`,
            method: 'put',
            data
        })
    }
    static setCharmToKk(number_id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/ratio/${number_id}`,
            method: 'put',
            data
        })
    }

    static getRegisterStatistics(query:any = {}) {
        return request({
            url: 'api/numbers/register/statistics',
            method: 'get',
            params: query
        })
    }

    static allNumbers(query:any = {}) {
        return request({
            url: 'api/numbers/all',
            method: 'get',
            params: query
        })
    }

    static getForbidUserList(query:any = {}) {
        return request({
            url: 'api/numbers/forbid_users',
            method: 'get',
            params: query
        })
    }
    static getForbidIpList(query:any = {}) {
        return request({
            url: 'api/numbers/handleUnDenyIpList',
            method: 'get',
            params: query
        })
    }
    static removeIpForbid(query:any = {}) {
        return request({
            url: 'api/numbers/removeIpForbid',
            method: 'get',
            params: query
        })
    }

    static forbidList(user_id:number | string = 0) {
        return request({
            url: `api/numbers/forbid/list/${user_id}`,
            method: 'get'
        })
    }

    static setHeadImg(id:number | string = 0) {
        return request({
            url: `api/numbers/headimg/${id}`,
            method: 'put'
        })
    }

    static setNickname(id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/nickname/${id}`,
            method: 'put',
            data
        })
    }
  static setGender(id:number | string = 0, data:any = {}) {
    return request({
      url: `api/numbers/gender/${id}`,
      method: 'put',
      data
    })
  }
    static getUserBlockDuration() {
        return request({
            url: `api/numbers/block/duration`,
            method: 'get'
        })
    }

    static getReasonClass(query:any = {}) {
        return request({
            url: `api/numbers/block/rules`,
            method: 'get',
            params: query
        })
    }

    static deblocking(data:any = {}) {
        return request({
            url: `api/numbers/deblocking`,
            method: 'put',
            data
        })
    }

    static getForbidUser() {
        return request({
            url: 'api/numbers/forbids',
            method: 'get'
        })
    }

    static updateUUID(id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/uuid/${id}`,
            method: 'put',
            data
        })
    }
    static getuuidlist(data:any = {}) {
        return request({
            url: `api/cool_number/list_uuid_user_use_log`,
            method: 'post',
            data
        })
    }

    static setLiang(id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/liang/${id}`,
            method: 'put',
            data
        })
    }

    static setOfficial(id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/official/${id}`,
            method: 'put',
            data
        })
    }

    static setAbnormal(id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/abnormal/${id}`,
            method: 'put',
            data
        })
    }

    static setWaiter(id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/waiter/${id}`,
            method: 'put',
            data
        })
    }

    static setSuper(id:number | string = 0, data:any = {}) {
        return request({
            url: `api/numbers/super/${id}`,
            method: 'put',
            data
        })
    }

    static getUserActiveStatistics(query:any = {}) {
        return request({
            url: 'api/numbers/user_active_statistics',
            method: 'get',
            params: query
        })
    }

    static getActiveCertifyInfo(id:number | string = 0) {
        return request({
            url: `api/numbers/user_active_certify_info/${id}`,
            method: 'get'
        })
    }

    static setActiveCertify(data:any = {}) {
        return request({
            url: 'api/numbers/create_active_certify',
            method: 'post',
            data
        })
    }

    static getActiveCertify(id:number | string = 0) {
        return request({
            url: `api/numbers/active_certify_info/${id}`,
            method: 'get'
        })
    }

    static userPriceWall(id:number | string = 0) {
        return request({
            url: `api/numbers/userPriceWall/${id}`,
            method: 'get'
        })
    }

    static delPriceWall(data:any = {}) {
        return request({
            url: 'api/numbers/delPriceWall',
            method: 'post',
            data
        })
    }

    static userSign(id:number | string = 0) {
        return request({
            url: `api/numbers/getUserSign/${id}`,
            method: 'get'
        })
    }

    static editUserSign(data:any = {}) {
        return request({
            url: 'api/numbers/editUserSign',
            method: 'post',
            data
        })
    }

    static userVset(query:any = {}) {
        return request({
            url: `api/numbers/setUserV`,
            method: 'get',
            params: query
        })
    }

    static getMedalList(query:any = {}) {
        return request({
            url: `api/numbers/getMedal`,
            method: 'get',
            params: query
        })
    }

    static getChildrenMedal(query:any = {}) {
        return request({
            url: `api/numbers/getChildrenMedal`,
            method: 'get',
            params: query
        })
    }

    static setUserMedal(query:any = {}) {
        return request({
            url: `api/numbers/setUserMedal`,
            method: 'get',
            params: query
        })
    }

    static getUserMedalLog(query:any = {}) {
        return request({
            url: `api/numbers/getUserMedalLog`,
            method: 'get',
            params: query
        })
    }

    static delMedal(query:any = {}) {
        return request({
            url: `api/numbers/removeMedalLog`,
            method: 'get',
            params: query
        })
    }

    static getUserMeet(query:any = {}) {
        return request({
            url: `api/numbers/userMeet`,
            method: 'get',
            params: query
        })
    }

    static deleteMeet(query:any = {}) {
        return request({
            url: `api/numbers/delUserMeet`,
            method: 'get',
            params: query
        })
    }

    static createUserMeet(query:any = {}) {
        return request({
            url: `api/numbers/addUserMeet`,
            method: 'get',
            params: query
        })
    }

    static activateCode(query:any = {}) {
        return request({
            url: `api/numbers/activateCode`,
            method: 'get',
            params: query

        })
    }

    static activateCodeList(query:any = {}) {
        return request({
            url: `api/numbers/activateCodeList`,
            method: 'get',
            params: query

        })
    }

    static getInviteUser(query:any = {}) {
        return request({
            url: `api/numbers/getInviteUser`,
            method: 'get',
            params: query

        })
    }

    static getRoomWealthToUser(query:any = {}) {
        return request({
            url: `api/numbers/getRoomWealthToUser`,
            method: 'get',
            params: query
        })
    }
    static getRechargeLimit(query:any = {}) {
        return request({
            url: `api/numbers/getRechargeLimitList`,
            method: 'get',
            params: query
        })
    }
    static curdRechargeLimit(data:any = {}) {
        return request({
            url: 'api/numbers/curd_recharge_limit',
            method: 'post',
            data
        })
    }
    static delRechargeLimit(id:number | string = 0) {
        return request({
            url: `api/numbers/del_recharge_limit/${id}`,
            method: 'get'
        })
    }

    static bannedEquipment(query:any = {}) {
        return request({
            url: `api/numbers/banned_equipment/${query['uuid']}`,
            method: 'get',
            params: query
        })
    }

    static accountNumber(query:any = {}) {
        return request({
            url: `api/numbers/account_number/${query['uuid']}`,
            method: 'get',
            params: query
        })
    }

    static handleForbidDevice(query:any = {}) {
        return request({
            url: `api/numbers/handleForbidDevice`,
            method: 'get',
            params: query
        })
    }
    static handleForbidIp(query:any = {}) {
      return request({
          url: `api/numbers/handleForbidIp`,
          method: 'post',
          params: query
      })
    }
    static handleUnForbidIp(query:any = {}) {
      return request({
          url: `api/numbers/handleUnForbidIp`,
          method: 'post',
          params: query
      })
    }


    static getRoomAdminList(query:any = {}) {
        return request({
            url: `api/numbers/manageRoomList`,
            method: 'get',
            params: query
        })
    }
    static cancelRoomAdmin(data:any = {}) {
        return request({
            url: `api/numbers/roomStatus`,
            method: 'post',
            data
        })
    }
    static changeBindPhone(data:any = {}) {
        return request({
            url: 'api/numbers/changeBindPhone',
            method: 'post',
            data
        })
    }

    static userCancelLog(query:any = {}) {
        return request({
            url: 'api/user/userCancelLog',
            method: 'get',
            params: query
        })
    }


    static verify(data:any = {}) {
        return request({
            url: `api/clear/verify`,
            method: 'post',
            data
        })
    }

    static resetDevice(user_id:string | number = '') {
        return request({
            url: `api/numbers/resetDevice/${user_id}`,
            method: 'get',
            params: {}
        })
    }
    // 根据uuid读取用户信息
    static getUserInfo(params:any = {}) {
        return request({
            url: 'api/numbers/getUserInfo',
            method: 'get',
            params
        })
    }
    // 注销用户
    static getuserCancel(params:any = {}) {
        return request({
            url: 'api/user/userCancel',
            method: 'get',
            params
        })
    }
    static clearUserAll(data:any = {}) {
        return request({
            url: 'api/user_verify/clearUserAll',
            method: 'post',
            data
        })
    }
    static clearUserbankAll(data:any = {}) {
        return request({
            url: 'api/finance/clearUserbankAll',
            method: 'post',
            data
        })
    }
    static smsCodeReset(data:any = {}) {
        return request({
            url: 'api/user/smsCodeReset',
            method: 'post',
            data
        })
    }
    static genderReset(data:any = {}) {
        return request({
            url: 'api/user/genderReset',
            method: 'post',
            data
        })
    }
    static phonoCodeReset(data:any = {}) {
        return request({
            url: 'api/user/phonoCodeReset',
            method: 'post',
            data
        })
    }
    static blackList(params:any = {}) {
        return request({
            url: 'api/user/blackList',
            method: 'get',
            params
        })
    }
    static blackListDelete(data:any = {}) {
        return request({
            url: 'api/user/blackListDelete',
            method: 'post',
            data
        })
    }
    static blackListAdd(data:any = {}) {
        return request({
            url: 'api/user/blackListAdd',
            method: 'post',
            data
        })
    }
    static setUserHeadImg(data:any = {}) {
        return request({
            url: 'api/user/setHeadImg',
            method: 'post',
            data
        })
    }
    static setUserPortrait(data:any = {}) {
        return request({
            url: 'api/user/setUserPortrait',
            method: 'post',
            data
        })
    }
    // 代理用户列表
    static agentUserList(params:any = {}) {
        return request({
            url: 'api/agent/agentUserList',
            method: 'get',
            params
        })
    }
    // 新增代理用户
    static agentUserAdd(data:any = {}) {
        return request({
            url: 'api/agent/agentUserAdd',
            method: 'post',
            data
        })
    }
    // 编辑代理用户
    static agentUserEdit(data:any = {}) {
        return request({
            url: 'api/agent/agentUserEdit',
            method: 'post',
            data
        })
    }
    // 删除代理用户
    static agentUserDel(data:any = {}) {
        return request({
            url: 'api/agent/agentUserDel',
            method: 'post',
            data
        })
    }
    // 代理交易记录列表
    static agentLogList(params:any = {}) {
        return request({
            url: 'api/agent/agentLogList',
            method: 'get',
            params
        })
    }
    // 代理钻石交易记录列表
    static agentDiamondLogList(params:any = {}) {
      return request({
          url: 'api/agent/agentDiamondLogList',
          method: 'get',
          params
      })
    }

    // 交友广场资料审核列表
    static chatfriendList(params:any = {}) {
        return request({
            url: 'api/chatfriend/list',
            method: 'get',
            params
        })
    }
    // 交友广场资料更改审核状态
    static chatfriendChagestatus(params:any = {}) {
        return request({
            url: 'api/chatfriend/chagestatus',
            method: 'get',
            params
        })
    }
    //用户(uuid)登陆日志-用户历史IP查询
    static user_ip_login_log(params:any = {}) {
        return request({
            url: 'api/numbers/login_log',
            method: 'get',
            params
        })
    }
  // 代理用户列表
  static agentGolodUserList(params:any = {}) {
    return request({
      url: 'api/agent/agentGolodUserList',
      method: 'get',
      params
    })
  }

  // 新增代理用户
  static agentGolodUserAdd(data:any = {}) {
    return request({
      url: 'api/agent/agentGolodUserAdd',
      method: 'post',
      data
    })
  }
  // 编辑代理用户
  static agentGolodUserEdit(data:any = {}) {
    return request({
      url: 'api/agent/agentGolodUserEdit',
      method: 'post',
      data
    })
  }
  // 删除代理用户
  static agentGolodUserDel(data:any = {}) {
    return request({
      url: 'api/agent/agentGolodUserDel',
      method: 'post',
      data
    })
  }
  // 代理交易记录列表
  static agentGolodLogList(params:any = {}) {
    return request({
      url: 'api/agent/agentGolodLogList',
      method: 'get',
      params
    })
  }
  // 代理钻石交易记录列表
  static agentGolodKKLogList(params:any = {}) {
    return request({
      url: 'api/agent/agentGolodKKLogList',
      method: 'get',
      params
    })
  }
  static updateRegDate(params:any={}){
    return request({
      url: "api/numbers/updateRegDate",
      method: "post",
      params,
    });
  }

  static deleteIpLog(params:any = {}) {
    return request({
      url: 'api/numbers/delete_login_log',
      method: 'get',
      params
    })
  }

  static myBag(params: any = {}) {
    return request({
      url: 'api/user/myBag',
      method: 'get',
      params
    })
  }
}
